package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2019-03-10
 */
@TableName("t_display_fenlei")
public class DisplayFenlei extends Model<DisplayFenlei> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 分类名
     */
	private String name;
    /**
     * 展示分类名#根据业务起的别名
     */
	private String showname;
    /**
     * 展示分类类别@1：全部商品；1：店家推荐；2：拼团商品；3：砍价商品；4：限时购商品；5：爆款商品；6：抽奖商品；7：预约服务；8：实物商品
     */
	private Integer type;
	private Integer listtype;

    /**
     * 显示图
     */
	private String pic;
    /**
     * 排序
     */
	private Integer sort;

	private Integer more;
	private Integer show;
	private Integer mtype;
	@TableField("head_type")
	private Integer headType;

	private String purl;
	private String mpath;
	private String mkey;
	private String mval;

	private Long mid;
	private Long mpid;
	private Long uid;
	private Integer state;
	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShowname() {
		return showname;
	}

	public void setShowname(String showname) {
		this.showname = showname;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Integer getListtype() {
		return listtype;
	}

	public void setListtype(Integer listtype) {
		this.listtype = listtype;
	}


	public Integer getMore() {
		return more;
	}

	public void setMore(Integer more) {
		this.more = more;
	}

	public Integer getShow() {
		return show;
	}

	public void setShow(Integer show) {
		this.show = show;
	}

	public Integer getMtype() {
		return mtype;
	}

	public void setMtype(Integer mtype) {
		this.mtype = mtype;
	}

	public Integer getHeadType() {
		return headType;
	}

	public void setHeadType(Integer headType) {
		this.headType = headType;
	}

	public String getPurl() {
		return purl;
	}

	public void setPurl(String purl) {
		this.purl = purl;
	}

	public String getMpath() {
		return mpath;
	}

	public void setMpath(String mpath) {
		this.mpath = mpath;
	}

	public String getMkey() {
		return mkey;
	}

	public void setMkey(String mkey) {
		this.mkey = mkey;
	}

	public String getMval() {
		return mval;
	}

	public void setMval(String mval) {
		this.mval = mval;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DisplayFenlei{" +
			"id=" + id +
			", name=" + name +
			", showname=" + showname +
			", type=" + type +
			", pic=" + pic +
			", sort=" + sort +
			", mid=" + mid +
			", mpid=" + mpid +
			", uid=" + uid +
			", state=" + state +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			", modifier=" + modifier +
			"}";
	}
}
